Problem Note 56739: Character column lengths become three times larger when data is read into SAS® from Microsoft SQL Server when you use SAS/ACCESS® Interface to OLE DB
Note: If you are using SAS® Marketing Automation in a Windows environment and are using Microsoft SQL Server to hold the SAS® Customer Intelligence common data model, see
SAS Note 57270: "Applying Hot Fixes W25001 or K96004 to SAS/ACCESS® Interface to OLE DB prevents SAS® Marketing Automation campaigns from working" before applying the hot fix in this SAS Note.
When you use SAS/ACCESS Interface to OLE DB and run a SAS UTF-8 encoding session, you might encounter a problem in which the non-UNICODE character column lengths are three times larger than expected when they are read into SAS. These non-UNICODE Microsoft SQL Server data types are CHAR, VARCHAR, and TEXT.
To work around the issue, use the SAS data set option DBSASTYPE= to specify the column length. Here is an example:
data saslib.table;
set oledblib.table(dbsastype=(column1='char(10)'));
run;
The column column1 is read into SAS with a length of 10.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to OLE DB | Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8 Enterprise 32-bit | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8 Enterprise x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8 Pro 32-bit | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8 Pro x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8.1 Enterprise x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8.1 Pro | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows 8.1 Pro 32-bit | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 R2 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2012 Datacenter | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2012 R2 Datacenter | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2012 R2 Std | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows Server 2012 Std | 9.3 TS1M2 | 9.3 TS1M2 |
Microsoft Windows XP Professional | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Home Premium x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Professional 32 bit | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Professional x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | 9.3 TS1M2 |
Windows 7 Ultimate x64 | 9.3 TS1M2 | 9.3 TS1M2 |
Windows Vista | 9.3 TS1M2 | 9.3 TS1M2 |
Windows Vista for x64 | 9.3 TS1M2 | 9.3 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Character lengths are multiplied by three when data is read from Microsoft SQL Server into a SAS® Unicode Server using SAS/ACCESS Interface to OLE DB.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2016-04-09 14:29:39 |
Date Created: | 2015-10-07 12:03:21 |